﻿<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html class="no-js">
<head>
<title>登录</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- CSS -->
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/css/login/reset.css">
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/css/login/supersized.css">
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/css/login/style.css">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<script type="text/javascript">

// $.ajax({  
// 	type:"post",  
// 	url:'login.action?username='+userName+'&password='+userPass,  
// 	dateType:"json",  
// 	success:function(data){  
// 		var json=eval("("+data+")");  
			
// 	}
// });
function refreshCheckCode() {
	var imgObj = document.getElementById('imgCheckCode');
	imgObj.src = "<%=request.getContextPath()%>/check.jpg?random="
			+ Math.random();
}
</script>
<style type="text/css">
	table input {
	width: 270px
}
</style>
</head>

<body>

	<div class="page-container">
		<form action="<%=request.getContextPath()%>/login/login.action" method="post" style="width:400px;height:380px">
				<div style="height: 20px"></div>
				<h1>Please&nbsp;Login</h1>
				<input type="text" name="username" class="username" placeholder="请输入您的用户名！" value="${username}">
				<input type="password" name="password" class="password" placeholder="请输入您的用户密码！"  value="${password}">
				<div style="width: 350px;margin-left:25px">
					<input style="width: 240px" type="Captcha" class="Captcha" name="captcha" class="Captcha" placeholder="请输入验证码！">
					<img id="imgCheckCode" class="code" title="刷新验证码" onclick="refreshCheckCode()" src="<%=request.getContextPath()%>/check.jpg">
				</div>
				<div style="line-height:36px">${msg}</div>
				<button type="submit" style="width: 300px" class="submit_button">登录</button>
					
			<div class="error"><span>+</span></div>
		</form>
	</div>

	<!-- Javascript -->
	<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
	<script src="<%=request.getContextPath()%>/js/login/supersized.3.2.7.min.js"></script>
	<script src="<%=request.getContextPath()%>/js/login/supersized-init.js"></script>
	<script src="<%=request.getContextPath()%>/js/login/scripts.js"></script>
	

</body>

</html>

